package com.yaoran.userauth.dao;

import com.yaoran.userauth.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleDao {
    void addRole(Role role);

    List<Role> listRole(String name);

    void updateRole(Role role);

    void deleteRole(Long id);

    void deleteManyRoles(Long[] ids);

    Role getRole(Long id);

    List<Role> listRole();
}
